package cn.iocoder.yudao.module.infra.controller.admin.face.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 人脸验证日志 Response VO
 *
 * @author 芋道源码
 */
@Schema(description = "管理后台 - 人脸验证日志 Response VO")
@Data
public class FaceLogRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;

    @Schema(description = "用户ID", example = "1024")
    private Long userId;

    @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "REGISTER")
    private String operationType;

    @Schema(description = "人脸标识", example = "face_token_123")
    private String faceToken;

    @Schema(description = "相似度分数", example = "85.5")
    private Double score;

    @Schema(description = "是否成功", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean success;

    @Schema(description = "错误信息", example = "人脸质量不合格")
    private String errorMessage;

    @Schema(description = "IP地址", example = "192.168.1.1")
    private String ipAddress;

    @Schema(description = "用户代理", example = "Mozilla/5.0")
    private String userAgent;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

}